package com.sztx.pay.center.dataaccess.dao.mysql;

import java.util.List;

import com.sztx.pay.center.dataaccess.domain.DumpRecordDO;
import com.sztx.se.dataaccess.mysql.BaseMysqlDAO;
import com.sztx.se.dataaccess.mysql.config.PageQuery;

import org.apache.ibatis.annotations.Param;

public interface DumpRecordMysqlDAO extends BaseMysqlDAO<DumpRecordDO> {
    

    List<DumpRecordDO> listPage(@Param("dumpRecordDO") DumpRecordDO dumpRecordDO, @Param("pageQuery") PageQuery pageQuery);
    
    List<DumpRecordDO> listPageForSchedule(@Param("dumpRecordDO") DumpRecordDO dumpRecordDO, @Param("pageQuery") PageQuery pageQuery);

    Integer listCount(@Param("dumpRecordDO") DumpRecordDO dumpRecordDO);
    
    Integer save(DumpRecordDO dumpRecordDO);
    
    Integer batchSave(List<DumpRecordDO> dumpRecordDOs);

	void addSuccessDumpRecord(@Param("type")int type, @Param("day")String day);
	
	void addFailedDumpRecord(@Param("type")int type, @Param("day")String day);
	
	void addSuccessDumpRecordByCount(@Param("type")int type, @Param("day")String day, @Param("num")int num);
	
	void addFailedDumpRecordByCount(@Param("type")int type, @Param("day")String day, @Param("num")int num);
	
	void updateDeleteState(@Param("type")int type, @Param("day")String day, @Param("deleteState") Integer deleteState);

	void updateDumpRecordAddTime(@Param("type")int type, @Param("day")String day);
	
}